
var controllers = require('../app/controllers')
var auth=require('./auth');
module.exports = function (app) {
  app.get( '/', controllers.home);
  app.get( '/messages' , controllers.messages.list);
  app.post('/messages' , controllers.messages.create);
  app.get( '/message/:id', controllers.messages.get);
  app.post('/message/:messageId/comments', controllers.comments.create);
  app.post('/accounts/login',controllers.accounts.login);
  app.post('/accounts/register',controllers.accounts.register);
  app.get('/accounts/logout',controllers.accounts.logout);
  app.get('/hospital/list',auth.signinRequired,controllers.hospital.list);
  app.get('/hospital/load',auth.signinRequired,controllers.hospital.load);
  app.post('/hospital/create',controllers.hospital.create);
  app.get('/doctor/list',controllers.doctor.list);
  app.post('/doctor/update',controllers.doctor.update);
  app.post('/doctor/addHelper',controllers.doctor.addHelper);
};
